package leedcode_path.stringleedcode;

public class 反转字符串 {
    public void reverseString(char[] s) {
        char t;
        for (int i = 0; i < s.length/2; i++) {
            t=s[i];
            s[i]=s[s.length-1-i];
            s[s.length-1-i]=t;
        }
    }
}
